package com.yuke.cloud.service.pmc;

import com.yuke.cloud.service.pmc.service.ProdBrandService;
import javafx.application.Application;
import junit.framework.TestCase;
import lombok.extern.slf4j.Slf4j;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/*
 * <p>Company: Copyright (c) 2018. yuke All Rights Reserved. </br> </p>
 * <p>Title：yuke-mall </br> </p>
 * <p>com.yuke.cloud.service.pmc Description TODO </br> </p>
 * @Author wg
 * @Date   2020/1/3 9:30
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {Application.class})// 指定启动类
@Slf4j
public class test3 {




        @Autowired
        private ProdBrandService prodBrandService;

        /**
         * 使用断言
         */
        @Test
        public void test2() {
            log.info("test hello 2");
            TestCase.assertEquals(1, 1);

        }


        /**
         * 测试注入
         */
        @Test
        public void test3() {

            log.info("helloService.getVal()={}", prodBrandService.findAll());
        }

        @Before
        public void testBefore() {
            System.out.println("before");
        }

        @After
        public void testAfter() {
            System.out.println("after");
        }

}
